package com.lz.sports.api

import com.lz.comm.net.HttpResult
import com.lz.sports.bean.ZipAddress
import kotlinx.coroutines.flow.Flow
import okhttp3.ResponseBody
import retrofit2.Call
import retrofit2.http.GET
import retrofit2.http.Query
import retrofit2.http.Url

interface DownloadApi {

    //zip获取
    @GET("/data/json/zip")
    fun zip(@Query("planId") planId: String): Flow<HttpResult<ZipAddress>>

    //下载
    @GET
    fun download(@Url url: String): Call<ResponseBody>
}